<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
   <h:head>
      <title>演示表格组件</title>
      <h:outputStylesheet library="css" name="table.css"/>
   </h:head>
   <h:body>
      
      <h:form>
          <h:dataTable value="#{top10Player2019.top10}" var="p" columnClasses="oddColumn,evenColumn">
               <f:facet name="caption"> 世界网坛女子排名 </f:facet>
            <h:column >
                <f:facet name="header"> 国籍</f:facet>
               #{p.country},
            </h:column>

            <h:column>
                 <f:facet name="header"> 姓名</f:facet>
               #{p.name}
            </h:column>
         </h:dataTable>
      </h:form>
   </h:body>
</html>

